jQuery(document).ready(function($){(bodhisvgsInlineSupport=function(){if("true"===ForceInlineSVGActive&&jQuery("img").each(function(){jQuery(this).attr("src").match(/\.(svg)/)&&(jQuery(this).hasClass(cssTarget.ForceInlineSVG)||jQuery(this).addClass(cssTarget.ForceInlineSVG))}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var r=this.toString();("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>r.length)&&(e=r.length),e-=t.length;var s=r.lastIndexOf(t,e);return-1!==s&&s===e}),String.prototype.endsWith=function(t){var e=this.length-t.length;return e>=0&&this.lastIndexOf(t)===e},"true"===ForceInlineSVGActive)var t="img."!==cssTarget.Bodhi?cssTarget.Bodhi:"img.style-svg";else var t="img."!==cssTarget?cssTarget:"img.style-svg";$(t).each(function(t){var e=jQuery(this),r=e.attr("id"),s=e.attr("class"),i=e.attr("src");i.endsWith("svg")&&$.get(i,function(i){var n=$(i).find("svg"),a=n.attr("id");void 0===r?void 0===a?(r="svg-replaced-"+t,n=n.attr("id",r)):r=a:n=n.attr("id",r),void 0!==s&&(n=n.attr("class",s+" replaced-svg svg-replaced-"+t)),n=n.removeAttr("xmlns:a"),e.replaceWith(n),$(document).trigger("svg.loaded",[r])},"xml")})})()}); $(function(){ $('a[href*="#').click(function(){ if(location.pathname.replace(/^\//, '')==this.pathname.replace(/^\//, '')&&location.hostname==this.hostname){ var target=$(this.hash); target=target.length ? target:$('[name=' + this.hash.slice(1) + ']'); if(target.length){ $('html,body').animate({ scrollTop: target.offset().top - 100 }, 500); return false; }} }); }); $('.footer-count').each(function (){ $(this).prop('Counter',0).animate({ Counter: $(this).text() }, { duration: 2000, easing: 'swing', step: function (now){ $(this).text(Math.ceil(now)); }}); }); var $titleTab=$('.title_tab'); $('.Accordion_item:eq(0)').find('.inner_content').find('p').addClass('show'); $titleTab.on('click', function(e){ e.preventDefault(); if($(this).hasClass('active')){ $(this).removeClass('active'); $(this).next().stop().slideUp(500); $(this).next().find('p').removeClass('show'); }else{ $(this).addClass('active'); $(this).next().stop().slideDown(500); $(this).parent().siblings().children('.title_tab').removeClass('active'); $(this).parent().siblings().children('.inner_content').slideUp(500); $(this).parent().siblings().children('.inner_content').find('p').removeClass('show'); $(this).next().find('p').addClass('show p4-text'); }}); jQuery(document).ready(function($){ if(use=='yes'){ const second=1000, minute=second * 60, hour=minute * 60, day=hour * 24; if((document.getElementById('days'))||(document.getElementById('hours'))||(document.getElementById('minutes'))||(document.getElementById('seconds'))){ let countDown=new Date(timer).getTime(), x=setInterval(function (){ let now=new Date().getTime(), distance=countDown - now; document.getElementById('days').innerText=Math.floor(distance / (day)) + ":", document.getElementById('hours').innerText=Math.floor((distance % (day)) / (hour)) + ":", document.getElementById('minutes').innerText=Math.floor((distance % (hour)) / (minute)) + ":", document.getElementById('seconds').innerText=Math.floor((distance % (minute)) / second); }, second) }} }); const mobileSlide=()=> { const burger=document.querySelector('.burger'); const menu=document.querySelector('#mobile-menu'); const menulinks=document.querySelectorAll('.mobile-menu li'); const header=document.querySelector('.header'); burger.addEventListener('click', ()=> { menu.classList.toggle('mobile-menu-active'); header.classList.toggle('header-active'); menulinks.forEach((link, index)=>{ if(link.style.animation){ link.style.animation=''; }else{ link.style.animation=`linkfade .2s ease forwards ${index / 7 + 0.5}s`; }}); burger.classList.toggle('toggle'); }); } mobileSlide(); jQuery(document).ready(function($){ $(document).on('click', '#download-mac', function (){ window.open('/download-mac/'); window.location='/get-started-mac/'; window.focus(); }); $(document).on('click', '#download-mac-m1', function (){ window.open('/download-mac/?m1=true'); window.location='/get-started-mac/'; window.focus(); }); $(document).on('click', '#download-windows', function (){ var x86; if(navigator.userAgent.indexOf("WOW64")!=-1 || navigator.userAgent.indexOf("Win64")!=-1){ x86=false; }else{ x86=true; } window.open('/download-win/'); window.location='/get-started-windows/'; window.focus(); }); }); jQuery(document).ready(function($){ $('select.select-page').change(function(e){ window.location.href=$("select.select-page option:selected").attr('value'); }); url=window.location.pathname; $("select.select-page option[value='" + url + "']").attr('selected', true); }); var ToC = ""; $(".container-toc").append(ToC); var topMenu=$(".table-of-contents"), topMenuHeight=topMenu.outerHeight()-150, menuItems=topMenu.find("a"), scrollItems=menuItems.map(function(){ var item=$($(this).attr("href")); if(item.length){ return item; }}); $(window).scroll(function(){ var fromTop=$(this).scrollTop()+topMenuHeight; var cur=scrollItems.map(function(){ if($(this).offset().top < fromTop) return this; }); cur=cur[cur.length-1]; var id=cur&&cur.length ? cur[0].id:""; menuItems .parent().removeClass("toc-active") .end().filter("[href='#"+id+"']").parent().addClass("toc-active"); }); (function(){ var isIe=/(trident|msie)/i.test(navigator.userAgent); if(isIe&&document.getElementById&&window.addEventListener){ window.addEventListener('hashchange', function(){ var id=location.hash.substring(1), element; if(!(/^[A-z0-9_-]+$/.test(id))){ return; } element=document.getElementById(id); if(element){ if(!(/^(?:a|select|input|button|textarea)$/i.test(element.tagName))){ element.tabIndex=-1; } element.focus(); }}, false); }})();